#pragma once
#ifndef READ_CHINESE_FROM_XML
#define READ_CHINESE_FROM_XML
#include <string>
#include "cocos2d.h"

using namespace  std;

#define  READINSTANCE ReadChineseFromXML::GetInstance()

class ReadChineseFromXML
{
public:
	static ReadChineseFromXML * GetInstance();

	ReadChineseFromXML(std::string filepath);

	void ChangeSource(std::string newfile);

	const char * GetStringBykey(std::string key);
private:
	static ReadChineseFromXML * pread;
	std::string path;

	cocos2d::__Dictionary * dict;
};

#endif